repo.or.cz
/
and.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Adding some more judges, here and there.
[and.git]
/
ICPC Live Archive
/
4807 - Cocircular Points
/
gen.rb
blob
35052e7d47311a491375ae1f83f0e7d7b2a703b5
1
n = 100
2
puts n
3
seen = { }
4
n.times do
5
begin
6
x = rand(10 + 1) * (rand(2) > 0 ? -1 : 1)
7
y = rand(10 + 1) * (rand(2) > 0 ? -1 : 1)
8
end until seen[[x, y]].nil?
9
seen[[x, y]] = true
10
puts "#{x} #{y}"
11
end
12
puts 0